<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript" charset="utf-8" src="<%=basePath%>backgroundManager/js/SpecialClientPrice.js">

</script>
<form id="pagerForm" method="post" action="<%=basePath%>specialPrice_findSpecialPrices.action"> <!-- 此action指定的是排序、分页所提交的action -->
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<%=basePath%>specialPrice_findSpecialPrices.action?numPerPage=10&pageNum=1&orderField=P_CPRICE_ID&orderDirection=asc" method="post">
	<div class="searchBar">
				<div class="pageFormContent1">
					<p>
					<label width="50">客户名称：</label>
					<input id="clientName" type="text" name="chanName" size="13" />
					<input id="searchClientBtn_sp" type="button" value="..." />
					</p>
					<p>
				    <label>渠道名称：</label>
				    <input id="channelNum_sp" type="hidden" value="">
					<input id="channelName_sp" type="text" name="stPartition" size="13" />
					<input id="searchChannelBtn_sp" type="button" value="..." />
					</p>
					<p>
				    <label>起始分区名称：</label>
					<select id="stPartition_sp" style="width: 100px;" name="priceSeachBean.startPartitionNumber" >
					<option value="" selected>全部</option>
					</select>
					</p>
				</div>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">&nbsp;&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;&nbsp;</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>backgroundManager/pricemanager/Price/AddSpecialClientPrice.jsp?pageNum=1&numPerPage=10&orderField=P_CHANNEL_NUMBER&orderDirection=asc" target="navTab" title="添加特殊客户报价" width="500" height="350" rel="AddSpecialClientPrice"><span>添加特殊客户报价</span></a></li>
			<li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除特殊客户价格</span></a></li>
			<li><a class="edit" href="pricemanager/Price/PreviewSpecialClientPrice.html?uid={sid_user}" target="navTab" rel="PreviewSpecialClientPrice"><span>预览特殊客户报价</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="163">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="120" orderField="accountNo" class="asc">客户编码</th>
				<th width="120" orderField="accountNo" class="asc">客户名</th>
				<th width="120" orderField="accountNo" class="asc">渠道名称</th>
				<th width="100" orderField="accountNo" class="asc">起始分区</th>
				<th width="50"orderField="accountNo" class="asc">是否含燃油</th>
		<!-- 	<th width="80"orderField="accountNo" class="asc">物流模式</th> -->
				<th width="80"orderField="accountNo" class="asc">有效时间起</th>
				<th width="80"orderField="accountNo" class="asc">有效时间止</th>
				<th width="80"orderField="accountNo" class="asc">操作人</th>
				<th width="80"orderField="accountNo" class="asc">是否审批</th>
				<th width="80"orderField="accountNo" class="asc">审批人</th>
				<th width="200"orderField="accountNo" class="asc">说明</th>
				<th width="80"orderField="accountNo" class="asc">添加日期</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${requestScope.priceList}" var="cprice">
			<tr target="sid_user" rel="7">
				<td><input name="ids" value="xxx" type="checkbox"></td>
				<td>${cprice.customerNum }</td>
				<td>${cprice.customerName }</td>
				<td>${cprice.channelName }</td>
				<td>${cprice.startPartitionName }</td>
				<td><c:if test="${cprice.fuel eq true}">是</c:if><c:if test="${cprice.fuel eq false}">否</c:if></td>
				<td>2011-5-3${cprice.startDate }</td>
				<td>2011-5-3${cprice.endDate }</td>
				<td>${cprice.handelStaff }</td>
				<td><c:if test="${cprice.status eq 'NE'}">已审批</c:if><c:if test="${cprice.status eq 'CL'}">未审批</c:if> </td>
				<td>${cprice.approvalStaff }</td>
				<td>${cprice.note }</td>
				<td>${cprice.addDate }</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
			</select>
			<span>条，共${requestScope.totalRecords}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${requestScope.totalRecords}" numPerPage="${requestScope.pageSize}" pageNumShown="${requestScope.totalPages}" currentPage="${requestScope.pageNum }"></div>

	</div>
</div>
